import request from '@/utils/request'

// 查询患者固定费用配置列表 (分页)
export function selectPageNurseAutoItem(query) {
    return request({
        url: '/business/nurseAutoItem/selectPage',
        method: 'get',
        params: query
    })
}

// 查询患者固定费用配置列表 (不分页)
export function listNurseAutoItem(query) {
    return request({
        url: '/business/nurseAutoItem/list',
        method: 'get',
        params: query
    })
}

// 查询患者固定费用配置详细
export function getNurseAutoItem(nurseAutoItemId) {
    return request({
        url: '/business/nurseAutoItem/' + nurseAutoItemId,
        method: 'get'
    })
}

// 新增患者固定费用配置
export function addNurseAutoItem(data) {
    return request({
        url: '/business/nurseAutoItem',
        method: 'post',
        data: data
    })
}

// 修改患者固定费用配置
export function updateNurseAutoItem(data) {
    return request({
        url: '/business/nurseAutoItem',
        method: 'put',
        data: data
    })
}

// 删除患者固定费用配置
export function delNurseAutoItem(nurseAutoItemId) {
    return request({
        url: '/business/nurseAutoItem/' + nurseAutoItemId,
        method: 'delete'
    })
}
